﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MainFrame.master"
    CodeFileBaseClass="Frame.Pages.DetailEditPage" CodeFile="EditDetailConsumer.aspx.cs"
    Inherits="EditDetailConsumer" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="padding-left: 10px">
        <dx:ASPxRoundPanel ID="Detailpanel" Font-Size="Small" runat="server" Width="600px"
            HeaderText="客户信息维护" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx"
            EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
            SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="7px" PaddingRight="11px" PaddingTop="10px" />
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="7px" PaddingRight="11px" PaddingTop="1px" />
            </HeaderStyle>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <table>
                        <tr>
                            <td style="white-space: nowrap">
                                客户姓名:
                            </td>
                            <td width="220px" >
                                <dx:ASPxTextBox runat="server" ID="Edit_CName" Width="220px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" MaxLength="50">
                                    <ValidationSettings CausesValidation="true">
                                        <RequiredField ErrorText="客户姓名不可为空！" IsRequired="true"></RequiredField>
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                            <td style="white-space: nowrap">
                                首选电话号码:
                            </td>
                            <td >
                                <dx:ASPxTextBox Enabled="false" runat="server" ID="Edit_PhoneNum" Width="220px" Font-Size="Small"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                    MaxLength="50">
                                    <ValidationSettings CausesValidation="true">
                                        <RequiredField ErrorText="首选电话号码不可为空！" IsRequired="true"></RequiredField>
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                                                        
                        </tr>                        

                        <tr>
                            <td style="white-space: nowrap">
                                部门:
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="Edit_Department" Width="220px" Font-Size="Small"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                    MaxLength="50">
                                </dx:ASPxTextBox>
                            </td>
                            <td style="white-space: nowrap">
                                职位，头衔:
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="Edit_Position" Width="220px" Font-Size="Small"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                    MaskSettings="&lt;0..9999999g&gt;" MaxLength="100">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                性别:
                            </td>
                            <td>
                                <dx:ASPxComboBox runat="server" ID="Edit_Sex" Width="220px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" ValueType="System.Int32">
                                    <Items>
                                        <dx:ListEditItem Text="女" Value="0" />
                                        <dx:ListEditItem Selected="true" Text="男" Value="1" />
                                    </Items>
                                </dx:ASPxComboBox>
                            </td>
                            <td style="white-space: nowrap">
                                是否重要客户:
                            </td>
                            <td>
                                <dx:ASPxComboBox runat="server" ID="Edit_IsVip" Width="220px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" ValueType="System.Int32">
                                    <Items>
                                        <dx:ListEditItem Selected="true" Text="否" Value="0" />
                                        <dx:ListEditItem Text="是" Value="1" />
                                    </Items>
                                </dx:ASPxComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                车牌/车名/颜色:
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="Edit_Car" Width="220px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" MaxLength="50">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                                                <tr>
                            <td style="white-space: nowrap">
                                备注电话号码:
                            </td>
                            <td colspan="3">
                                <dx:ASPxTextBox runat="server" ID="Edit_PhoneRemark" Width="500px" Font-Size="Small"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                    MaxLength="100">
                                </dx:ASPxTextBox>
                            </td>
                            <td style="white-space: nowrap" align="left">多个号码请用";"隔开</td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                单位名称:
                            </td>
                            <td colspan="3">
                                <dx:ASPxTextBox runat="server" ID="Edit_Company" Width="500px" Font-Size="Small"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                    MaskSettings="&lt;0..9999999g&gt;" MaxLength="100">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                喜好，口味:
                            </td>
                            <td colspan="3">
                                <dx:ASPxTextBox runat="server" ID="Edit_Favor" Width="500px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" MaskSettings="&lt;0..9999999g&gt;"
                                    MaxLength="100">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                地址:
                            </td>
                            <td colspan="3">
                                <dx:ASPxMemo runat="server" ID="Edit_Address" Width="500px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Height="90px">
                                </dx:ASPxMemo>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                备注:
                            </td>
                            <td colspan="3">
                                <dx:ASPxMemo runat="server" ID="Edit_Remark" Width="500px" Font-Size="Small" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Height="90px">
                                </dx:ASPxMemo>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxButton ID="SubmitBtn" Font-Size="Small" runat="server" Text="提交" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="CancelBtn" Font-Size="Small" runat="server" Text="取消" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                    CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                                    CausesValidation="False" OnClick="CancelBtn_Click">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
    </div>
</asp:Content>
